package com.xuecheng.orders.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author itcast
 */
@FeignClient(value = "learning-api", fallbackFactory = LearningServiceClientFallbackFactory.class)
public interface LearningServiceClient {

    @DeleteMapping("/learning/choosecourse/{id}")
    Boolean deleteChooseCourse(@PathVariable("id") Long id);

    @DeleteMapping("/learning/coursetable")
    Boolean deleteCourseTable(@RequestParam("chooseCourseId") Long chooseCourseId);
}
